home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / indents.zip / makefile.bsd < prev    next >
Makefile  |  1993-05-30  |  1KB  |  48 lines

  1. # Copyright (c) 1987 Regents of the University of California.
  2. # All rights reserved.
  3. #
  4. # Redistribution and use in source and binary forms are permitted
  5. # provided that the above copyright notice and this paragraph are
  6. # duplicated in all such forms and that any documentation,
  7. # advertising materials, and other materials related to such
  8. # distribution and use acknowledge that the software was developed
  9. # by the University of California, Berkeley.  The name of the
  10. # University may not be used to endorse or promote products derived
  11. # from this software without specific prior written permission.
  12. # THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
  13. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  14. # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  15. #
  16. #    @(#)Makefile    5.9 (Berkeley) 88/09/15
  17. #
  18.  
  19. CFLAGS= -O -DBSD #-DMAXPATHLEN=256
  20. LIBC=    /lib/libc.a
  21. SRCS=    indent.c io.c lexi.c parse.c comment.c args.c
  22. OBJS=    indent.o io.o lexi.o parse.o comment.o args.o
  23. MAN=    indent.0
  24.  
  25. all: indent
  26.  
  27. indent: ${OBJS} ${LIBC}
  28.     ${CC} -o $@ ${CFLAGS} ${OBJS}
  29.  
  30. clean:
  31.     rm -f ${OBJS} core indent
  32.  
  33. cleandir: clean
  34.     rm -f ${MAN} tags .depend
  35.  
  36. depend: ${SRCS}
  37.     mkdep ${CFLAGS} ${SRCS}
  38.  
  39. install: ${MAN}
  40.     install -s -o bin -g bin -m 755 indent ${DESTDIR}/usr/ucb/indent
  41.     install -c -o bin -g bin -m 444 indent.0 ${DESTDIR}/usr/man/cat1/indent.0
  42.  
  43. lint: ${SRCS}
  44.     lint ${CFLAGS} ${SRCS}
  45.  
  46. tags: ${SRCS}
  47.     ctags ${SRCS}
  48.